package com.demo.blog.pojo.response;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

@Data
public class UserInfoParam {

    @NotBlank(message = "用户名不能为空")
    @Length(min = 4, max = 20, message = "用户名长度必须在4-20之间")
    private String userName;

    @NotBlank(message = "密码不能为空")
    @Length(min = 4, max = 20, message = "密码长度必须在4-20之间")
    private String password;
}
